//
//  TestWindow.cpp
//  storm
//
//  Created by wangdi on 13-8-20.
//
//

#include "TestWindow.h"

using namespace cocos2d;
using namespace storm;

void TestWindow::onEnter()
{
    UIPanel::onEnter();
    
    CCLog("enter testwindow");
    setContentSize(CCSize(1000, 1000));
    UIButton *pButton = UIButton::Create(UIButton::TYPE_SCALE, false, "CloseNormal.png");
    pButton->setPosition(ccp(50, 50));
    AddChildWidget(pButton);
    pButton->OnClick.connect(this, &TestWindow::OnButtonClick);
}

void TestWindow::OnButtonClick(storm::UIButton *pButton)
{
    CCLog("on test window click");
}